package turtle;
import java.awt.Color;

public class Achsen{
  public static void main(String[] args){
    Turtle susi=new Turtle();
    //Papier
    susi.setColor(Color.LIGHT_GRAY);
    for(int x=-100; x<=100; x=x+20){
      susi.moveTo(x,0);
      susi.lineTo(x,200);
    }
    for(int y=-0; y<=200; y=y+20){
      susi.moveTo(-100,y);
      susi.lineTo(100,y);
    }
    //Koordinatensystem
    susi.setColor(Color.BLACK);
    susi.moveTo(0,0);
    susi.lineTo(0,200);
    susi.moveTo(-100,0);
    susi.lineTo(100,0);
    for(int x=-100; x<=100; x=x+20){
      susi.moveTo(x,2);
      susi.lineTo(x,-2);
    }
    for(int y=0; y<=200; y=y+20){
      susi.moveTo(2,y);
      susi.lineTo(-2,y);
    }
    //Parabel
    susi.setColor(Color.BLUE);
    susi.setPen(3);
    susi.moveTo(-100,200);//Start der Parabel links oben
    //von links oben beginnend...
    for(int x=-10; x<=10; x++){
      susi.lineTo(10*x,2*x*x);
    }
    susi.show();
  }
}

